package com.vector.demo.service;

import com.vector.demo.pojo.Teacher;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

public interface TeacherService {
    //添加教师
    int addTeacher(Teacher teacher);
    //删除教师
    int deleteTeacher(Integer id);
    //更新教师信息
    int updateTeacher(Teacher teacher);
    //通过id查询教师
    Teacher queryTeacherById(int id);
    //通过教师名字和教师密码查询教师
    Teacher queryTeacherByNameAndPassword(String name, String psssword);
    //查询全部教师
    List<Teacher> queryAllTeacher();


}
